package com.vstudy.zx.dao;

import com.vstudy.zx.entity.Grade;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@CacheNamespace(size = 512)
public interface GradeDao {
    @Select("select * from tb_grade")
    List<Grade> select();

    @Select("select * from tb_grade where grade_id=#{gId}")
    Grade selectById(Integer gId);
}
